Box Layout

The BoxLayout is one of the new Layouts provided with Swing.
BoxLayout works similarily to FlowLayout in that the children can be laid out in a horizontal row, one after the other, or in a vertical column.

If you wish to use the BoxLayout in your design, you should use a Box component. The Box component is another component provided by Swing which is simply an AWT Container with the layout set to BoxLayout. In Visaj, we give the Box a horizontal layout by default.

The LayoutEditor for BoxLayout is divided up into four sections: the component section, the orientation, the Filler section, and the Filler attributes section.

The Component Section
Here is where all the components are shown. Any Filler components used will also be shown here. You can move components around simply by dragging and dropping them to their new position.
The Orientation Section
This is where you decide whether the components are laid out horizontally or vertically.
The Filler Section
Fillers are invisible components which are used to insert spaces between components. To insert a Filler before a component, simply click on the component to select it, and then pick a Filler from the Filler section. To remove a Filler, you should remove the component from the Beans area.
There are two types of Fillers:

Glue
A Glue component behaves more like a spring than anthing sticky. Placing a Glue component between any two components, will push each as far apart from each other as possible. A common use of this may be in a Yes/No Dialog, where you wish the Yes and No buttons to be placed at either end of the Dialog.
Struts
A Strut component simply allows you to define a fixed space between two components. You may use these to provide a margin before the first and after the last components in your Container.
A RigidArea is simply a combination of a horizontal Strut and a vertical Strut, with equal width and height in both directions.
The Filler attribute Section

This allows you to change the minimum, maximum, and preferred size, of a Filler component. You would usually use this to change the fixed size of a Strut component, or the minimum size of a Glue component.

Once you have made a change to the size of a Filler, you should click on Apply to commit the change. The Reset button will resize the Filler component to its default size.